<?php

class loginModel extends commonModel {
    /*
     *  $this->initialDB()
     *  Use $this->db to use function  to get mysql
     */
    public function __construct() {
        $this->initialDB();
    }


    public function loginCheck($account, $pwd) {

        //回传admin验证
        $where = array("AND" => array("=" => array('code' => $account,'isdeleted'=>0)));
        $result=$this->getItemByCol($where, 'xd_company');
        return $result;
    }
    
}